<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.father{
				width: 50px;
				background-color: #00B0E7;
			}
			.son{
				display: inline-block;
				background-color: #0266A3;
				white-space: nowrap;/*也可以放在父容器中*/
			}
		</style>
	</head>
	<body>
		<div class="father">
			<p class="son">恰如一江春水向东流，流到断崖不回头</p>
		</div>
	</body>
</html>
